Logging to syslog and profiling

This pull-request contains a initial setup for logging to syslog and profiling...