Added an API controller that will by default return JSON.