Add exponential backoff to heartbeat/cache refresh tasks.
Merge pull request #242 from tbak/master

Add exponential backoff to heartbeat/cache refresh tasks.