Make `NodeFunc` answer the next state of the document
Make `NodeFunc` answer the next state of the document

* This takes into account the possibility of several different
  outcomes (i.e. next states) for the same input `DocAction`.

js-ojus/flow,js-ojus/flow