Add support to write pid to pidfile when running in daemon mode.

This pull request makes it easier to use shairport in daemon mode under linux.
It is now easier to use start-stop-daemon.