added HttpClient class - convenient wrapper for curl_* functions