Add a retry callback, to be called before each retry.

This enables you to create things such as "Retrying..." notification on timeouts.

I use it for cases where [Heroku](http://www.heroku.com)'s [load balancer drops my requests](https://devcenter.heroku.com/articles/http-routing#timeouts) if they take longer than 30 seconds.