interface: Add origin_snapshot_get_all method
It enables to return in an efficient way the list of unique snapshot identifiers resulting from the visits of an origin.
Previously it was required to query all visits of an origin then query all visit statuses for each visit to extract such information.
Introduced method enables to extract origin snaphots information in a single datase query.
Related to swh-web#3631
Migrated from D6572 (view on Phabricator)