Added class HttpClient

Moved method CloseStreams and InitializeStreams to HttoClient
Moved most of the while loop to HttpClient