archive: Fetch visit types associated to an origin in lookup_origin
In order to support origin with multiple visit types in browse interface,
update lookup_origin implementation to fetch the visit types associated
to an origin in an efficient way using swh-search
.
Related to #4786 (closed).
That MR also contains a commit simplifying some origin related function signatures.