Add error info to on_failure callback
Updated example for on_failure signature change
Fix tests for #194
Move `call_on_failure` to private method
On failure callbacks get curl and error as args

Reduces the signature while maintaining or even increasing the
usefulness of arguments