_utils: add support for bearer HTTP authentication
This affects the cpan and pypi plugins.
This uses the new extra_data parameter to translate_url. While this feature is only available in buildstream 2.2, it is used conditionnally to keep support for older buildstream versions.