numerous fixes for proxying jenkins behind nginx

need to bind the interface to loopback device if configured to be a
proxy