Merge pull request #11 from dkorolev/RetryPolicy

Exponential retry policy.