Store import dialogs persistently in MainWindow

This changes the behavior of MainWindow to store import dialogs
persistently. Now, only a single instance of an import dialog is
ever created and it will be reused when the user opens the dialog.

Change-Id: I687024f719e0d62c8c7b52ed367530a47eb77cb6