Creating json authentication
Added cancancan gem and 403 page
Changed routes and controller to traditional redirection on rails and added some methods to application controller