Dcorate API methods to wrap in session context, and map exceptions to
APIError