Refactoring for better package and name organization and changed httpclient from 4.2.5 to 4.0.3 for GWT compatibility