Record credit failures

Another step of #2508. Fixes #1811. Built on top of #2579.
I turned off the callback in #2631 and then turned it back on in #2632 because of this [IRC](https://botbot.me/freenode/gittip/2014-08-13/?msg=19663368&page=1) conversation.