RM6307

Initial commit of the api adaptor and tests.

Design of the basic functionality of sub-requests.