Make AuthServlet return json rather than chat/index.html