Daemonize

Ref: https://dev.cfengine.com/issues/6307
Supersedes: https://github.com/cfengine/masterfiles/pull/278