pom.xml prepared for sonatype deploy. Refactored http client code to not use deprecated methods.