Simplify cc_rest_client and make it more consistent with Utils.http_request