Move dialog and _shouldDialogOpen to their own dialogs.js file
WYMeditor.DIALOGS object replaces _shouldDialogOpen
Some dialogs module improvements