Add a mixin for capturing exceptions/messages from a Rails controller

See #46.