Resets ActionController::Base.allow_forgery_protection to its original value

* Closes #699