Add custom FailureApp for Devise
Configure application to load the custom FailureApp
Change from 302 to 401 for all formats and add custom FailureApp to change the response body
Modify trackins tests
Add tests for SessionsController
Add json as default format for routes and respond_to :json on the controllers