CacheContextManager recover APIError Subclasses
Fix request debug message
Adds APIRequest.from_api

Streamline APIRequest constructor. It only clean 
and sort parameter. Added a from_api classmethod 
to create an APIRequest from the pai details 
(api.base_url and api.api_key).

As a result APIRequest is easier to repr and 
to log.