Changed API of http client and little optimisation

Http client creates libcurl easy handle in constructor, not for each request.