Refactor Dialog and Messagebox, migrate a lot of code.
Migrate the last few Messagebox occurrences.
Fixed default "unsaved changes" confirmation dialog.
Start migrating FileChooser.