Fixed an issue where calling close() would throw an IllegalStateException (something wasn't consumed correctly) when using latest Apache libraries.
Updated to use HttpClientBuildler instead of DefaultHttpClient as this was deprecated.
Updated version of required libraries.