+ Added user authentication
~ Moved JSON detection to AppController rather than having it in each controller separately