Support a --daemon command-line option

If running as a daemon, ensure logging is written to syslog.

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