Adding blur to dialogs

Blur the main window while a dialog is up.

Related to https://github.com/KanoComputing/peldins/issues/1066
Moving close_window to the MainWindow class
Merge pull request #144 from KanoComputing/blur-on-dialogs

Blur on dialogs