Major cleanups in Dialogs for mgwt 2.0.

Fixes #38
Merge pull request #64 from dankurka/cleanup_dialogs

Major cleanups in Dialogs for mgwt 2.0.