ping-detection of running Pd

rather than assuming that Pd is running once it has started,
wait until we receive a '/ping'...