heroku metadata
on hostname lookup failure, use the ip address instead
charset isn't useful piece of information -- browsers don't send it anymore
check heroku's header for 'real' ipaddr first
check x-forwarded-for header for real ip too
remove needless variable
just assume we're on heroku for now