Backed out from customizations

As done in HTTPCLIENT-1454, since they will only
get out as 4.4 around the end of 2014 Q1.

Implemented the recommended way, using custom
LayeredConnectionSocketFactory.