rejig the server-info and remote-ip stuff to use a common function.
change send-proxy-location to use the new server-info