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.