[PATCH 2/6] oap: implement initial OAP API.