Logging framework and command line options
Fixed callbacks on raspbian
Fixed log level in server mode