Move logging helper functions to their own file.
Get ConfigHandler into a usable state.

It works, but still does not have very good error handling.
Add a test macro for ConfigHandler.