Better logging of retries (to ActiveSupport's log instead of STDOUT).

It does mean the code does some wrapping of errors, but this allows the error messages to be more useful, which is no bad thing.
Updating HISTORY file.