Added handling of single files and added writing of pid file at startup.
Added handling of single files and added writing of pid file at startup.

yestinj/PutioCallbackCatcher,yestinj/PutioCallbackCatcher