Add basic JSON based API for recording sessions