Start integrating libdaemon to provide proper daemon behavior.
libdaemon integration mostly working.