Exposed by tasks max-retry and added "global" max-retry for all tasks.
Fixed and tested.
Added @volatile on retry count since its accessed now.
Merge pull request #63 from wajam/jerome-fix-maxtasks-retry

Exposed by tasks max-retry and added "global" max-retry for all tasks.