Generates html/json response based on Accept header
Test coverage
Removed test that didn't test what it thought it tested