Modified ActionController::Integratio to use ActionDispatch and fix a deprecation in Rails 4.0.0-beta