HomeSoftware Heritage

BaseLoader: Add hook to call metadata fetchers before loading an origin

Description

BaseLoader: Add hook to call metadata fetchers before loading an origin

This uses setuptools entrypoints to allow metadata fetchers to
make themselves discoverable without explicitly depending on them.

This commit also lifts the generic metadata loading from the base
PackageLoader to BaseLoader