Added ability to trust HTTP_X_FORWARDED_FOR IPs