Add pidfile field to configuration struct
Add PID file helper function
Write PID file when the router starts serving requests