New embind-based API, pretty much ready, roughly documented in the source code for now