Added methods to check server connectivity

* Added ping_until_reachable and ping_until_unreachable methods
  to allow a lightweight connectivity check for servers.

Change-Id: I373a124fd3c50a702e1e2f806c6e8d986991f7e7
Merge "Added methods to check server connectivity"