start migration to httpclient.
remove unused stuff.
more http client changes.