Added support for JSON and a JSON controller preparing for web forms.