Update For Rails 4 Support

Rack::Attack should be a class, not a module.  Defined Rack::Attack if not already defined. Minor style changes.