Switch to modern Apache HttpComponents API.
This was mostly an exercise in replacing org.apache.commons.httpclient.* with their equivalents in org.apache.http.*