add events to json controller for error handler
Merge pull request #7 from forivall/master

add events to json controller for error handler

TODO: consider removing backbone events from rest_controller.coffee