Add a basic test for cloudi_service_http_client and fixed various bugs.