Moved HttpClient stuff to own classes and package.