Fixes to get daemon mode working.

Several items to get things working well as daemons. In particular the scheduler had a number of problems causing crashes on startup. Some of the problems went all the way through the client, API, and DB.

Also structured the config setup to match the structure used by other os projects.

To run, copy over the appropriate .sample file to .conf in etc/qonos/ and edit accordingly. The default log_file location is in /var/log/qonos so the services need to be run as a user with write perms there or change the log_file location.