Delte env["QUERY_STRING"] if its malformed
Fix for Rails 3.2

I probably should drop support for Rails 3.2...
Replase ActionController::Base with ActionController::Metal