Created new client which is nolonger dependent on the DaemonContext class
Fixed pidfile locking to check for an existing pidfile.
Merge branch 'tidy-daemon-context'