Adds a timeout to cylc ping.
Merge pull request #608 from arjclark/hung-port-hotfix

cylc ping: add timeout