add selenium grid heartbeat

Start work on issue #370 re-register on selenium hub restart.  This implementation periodically pings the selenium hub every 10 seconds.

Disclaimer:  I was unable to figure out how to rebuild phantomjs with these changes so I was unable to test these changes with selenium grid.  Let me know if my js is not consistent with the rest of the project.