If we're on Pagodabox, we can trust HTTP_X_FORWARDED_FOR

Signed-off-by: Max Fierke <max@maxfierke.com>
Fix redirect after edit on IP entity.

Signed-off-by: Max Fierke <max@maxfierke.com>