Removal usages of the global config.Config variable from the production code
This MR removes as much as possible for now usages of the config.Config from production code.
In most cases it is replaced with the filed of nearest structure where it is injected with the constructor.
There are still a couple of places to fix: git.NewCommand and rubyserver.Server.start method. Those will be addressed later.
Part of: #2699 (closed)