[PATCH 4/8] oap: implement initial OAP API.