Config system works.

TODO:
* Check which entries to keep in text config.
* Import the rest to database
Config system ready for deployment.

Note: This is still not fully tested, could suck balls.
But on the other hand, i'd say ready for master!
Note2: Maybe some configs should be moved from database, i do not give a fuck atm. As nobody but me uses this branch this will probably be left unknown.