Refactor the search functionality
Refactor api and browse to be more consistent
- move search logic to the api layer
- update template and browse to reflect this
Changes go towards swh/infra/websites/www.softwareheritage.org-gandi#437
Migrated from D47 (view on Phabricator)