WIP: adding more of the API.
WIP: started impl of begin_txn when I noticed that LMDB uses thread-local storage which is hard to map given the async_nif model, stalled out while considering what to do next.