use httpclient to power HTTPUtilities class

Second try at this. Changes the exceptions raised slightly but should be basically the same.