Refactor server pidfile stuff a bit.

To allow auto-opening a browser tab to the report
when you run a server.

Auditors: pl