Wiki 489/rails 4 support

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