Implemented pid file.

Using third party pidfile library optionally with DaemonContext.