Merge pull request #242 from tbak/master

Add exponential backoff to heartbeat/cache refresh tasks.
Update gradle configuration.