Moved configuration handling to the Config class

* Added config option for logging
* Removed Connection class (now handled in DB)
Tabs to spaces