Rewritten the http handler.
http handler now uses HttpUrlConnection instead of the deprecated HttpClient.
General refactoring and documentation.