Cleanup config handling - deprecate old ways to interact with config

* deprecate old and static ways to interact with config
* introduce SystemConfig to avoid DI circle (used by database connection  which is itself needed by AllConfig that itself contains the methods to access the config.php which then would need the database connection - did you get it? ;))
* use DI container and use that method in legacy code paths (for easier refactoring later)

fixes #12260 

@PVince81 @Raydiation @DeepDiver1975 @LukasReschke Opinions?
I know - I'm nitpicking and playing the bad guy. But using 3 lines for a single type definition always drives me crazy and I consider this cluttering the code.

Can we not just use one line for that? - PHPStorm can also do that fine automatically for you just type `/** ` and the autocompletion magic will happen.