Added test + feature for specifying attempts to retry.
Updated README and documentation with examples for using attempts option.
Merge pull request #3 from archit/add-support-for-attempts

Introduce +attempts+ option to retry.