[JENKINS-6167] Support JNLP slave connection via HTTP proxy

We get proxy setting from http.proxyHost property or http_proxy
environment variable.