WebUI: Use slave hostname rather than libprocess.

It's safer to use the hostname of the slave rather than the libprocess
IP since we don't necessarily know that the interface's IP is publicly
accessible.  This applies especially for services like EC2.

Review: https://reviews.apache.org/r/11813