Improve Prometheus metric registration for Gitaly
While Praefect will register Prometheus metrics as part of its main module, Gitaly does so throughout the code. This leads to module-global variables which cannot depend on any runtime configuration like e.g. Gitaly's config file.
We should refactor Gitaly to do the same as Praefect does to improve code quality and make metric registration more flexible.