Fix Rserve reporting a wrong pid when daemonized, by postponing the PID file creation for after the server was forked.
Also, add auto-delete of pid file on graceful shutdown of server.
clean up fix for #5