Rewrite celery tasks as a decorated function
as well as the tests of the task. Requires swh-scheduler >= 0.0.39
Bump dependency on swh-scheduler 0.0.39
Also use loader/mercurial as config base name for the sake of consistency (and to ease the docker env).
Related to T1480
Migrated from D972 (view on Phabricator)