storage: Implement visit types filtering in origin_search method
Enable to filter searched origins by visit types.
Add a new optional visit_types parameter to origin_search method in StorageInterface.
Implement visit types filtering in storage backends, an origin wil be returned if it has any of the requested visit types.
This is clearly not designed to be used in production due to performance issues but rather in testing environments with small archive dataset.
Related to swh-web#2869 (closed)
Migrated from D5110 (view on Phabricator)