Support http proxies.

Switched from resteasy to httpclient4