Retry if ping of scheduler fails

* Makes ping interval configurable
* Also adds accessible stop() method to stop workers' keep-alive-threads
Additional test for new Worker.stop method
Merge pull request #147 from spotify/freider/ping_retry

Retry if scheduler ping fails