Precompute ISA

Originally this was about setting timeouts, but ServerFault says I can't
control timeouts due to DNS, which was the issue when the hostname
wasn't specified well.  Hopefully the changes here to use getLocalHost
will fix this.
Minor style changes