Added post-execution behaviours to OpDialogue.

These allow the UI writer, the Op writer or the user to choose whether or not the dialogue should be closed after the Op has executed.

Fixes #560.
Merge pull request #563 from johnhaddon/opDialogueCloseBehaviour

Added post-execution behaviours to OpDialogue.