New configuration framework

New configuration framework, which simplifies code a lot. Should be fully compatible with the old one.
This will be done after PR is ok, because I also intend to split it up a bit.
E.g. the "Core.Output" config options can now go into OutputHandler class.
This also removes the need to make OutputHandler.setConfirmationColor etc. public variables.