OpDialogue customisation hooks

This adds a couple of small things Paulo requested, that should enable some nice customisations in Jabuka.