Moved MainWindow into its own module.