Fix USE_X_FORWARDED_FOR for proxied environments

The settings for USE_X_FORWARDED_FOR were not being respected because the settings were not being passed through.

It was using the local settings in rated.settings, so USE_X_FORWARDED_FOR was not being populated, so ip address was always being set to REMOTE_ADDR.