Ensure json requests get json error response on failure

Normally rails sends an html page which can't be parsed by the client.
Test the error handling of json and html responses
integration test for displaying internal server error during signup
Merge pull request #76 from azul/feature/3600-visual-feedback-on-failed-signup

Ensure json requests get json error response on failure