Added proxy handling (standard JRE proxy selector)

By default HttpClient doesn't use standard proxy setting, so they need to be registered.