Add env var SWH_MAIN_PACKAGE to initialize sentry_sdk with a release.
Also deduplicates code used to call sentry_sdk.init by making all our init code go through the same function swh.core.sentry.init_sentry."
Migrated from D2514 (view on Phabricator)