Added new base controller for JSON API