Added support for a pid file. Added ability to reload configuration by sending a SIGHUP to the running process.