Better handling of getting visitor IP address including when app is runn...

Better handling of getting visitor IP address including when app is running behind a load balancer.