Change the way in which the toolbar's nav and select state is updated. This fixes a bug that became evident when using the nav example's toggle nav and select button. In those cases the toolbar and command state bar didn't have their states updated to reflect the state of the underlying editor.
The main changes are... make the nav module commands return a value, move the publication of the result of the nav commands up into the message adapter (which is where it belongs), change the topic for nav and select, add two new related topics that explicitly set the state (on/off) rather than toggle it, make the UI artifacts (toolbar and command state bar) update in response to the result of the nav and select commands rather than in response to an artificial key publication (command.exec.key) and remove the now unused key publication. Change the nav example to use the new publication.
The way in which the toolbar checkboxes are changed has been altered so that the user action no longer does this but instead they are set in response to the publication made after the command has been executed.
Also some tidying up.
Note that this commit breaks the command status bar checkbox on the toolbar.
Make the status bar indicator on the toolbar work again. Also makes it work in the same way as the changes made to the nav and select so it now supports toggle, on and off publications.
Change the way that the toolbar handles publications received prior to the toolbar being created.