Logging

New logging system is very clean and is integrated into the config files.
You can toggle debug logging without affecting normal logging.
Configs are loaded according to environment variables. No 
manually switching configs, it's all handled dynamically now.