Pid code now within private 'Pid' class

Now store the pid-file location, makes clean-up more reliable.
This is in preparation for the pid callback for swig.