Add the ability to daemonize with '-daemon' commandline option.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>