Moved daemon from executable to daemon module.