cleanup
Logger rework.

Rework logger code.
Will now log to syslog + stdout
Logger

Replace some LOG() call and some direct writing to stdout by
new logging infrastructure.