Rails integration for AngularJS style CSRF protection