Respect accept header for JSON in devel server #719