Add log subsystem
Exceptions are thrown, rename the macro
Cleanup exception-handling in server
Remove obsolete code
Use format-string for log-output function
Start on parser for config-file
Update example-content in agent.conf