Added exit_on_fork option to daemon

Allows you to chose if you want the parent
process to exit or continue once the daemon is forked.