Make config, pid, and file descriptors into static global variables
Add pidfile support