Refactor metadata translator to parse different types of files
metadata translator: https://forge.softwareheritage.org/source/swh-indexer/browse/master/swh/indexer/metadata_dictionary.py
uses classes and hard coded mappings. should be easier to maintain and add new mappings, maybe use directly the crosswalk table.
Migrated from T1236 (view on Phabricator)