Extends Rails CSRF protection to play nicely with AngularJS