Devise Session class override with custom methods

also added headers for CORS requests to work from the angularjs
frontend located in another domain