Major cleanups in Dialogs for mgwt 2.0.

Fixes #38