Major changes:

1. Make the dispatch table work with datoms.
2. Make the dispatch loop short-circuit when a match is found.
3. Call the handler code with the txn it matched, so it can return a
   function that closes over the txn. This closure will then be
   invoked later by the executor.