Implemented recent layers and maps submenus. Also, the earlier change to remove the MainWindow.show() from the main() function meant that closeEvent was never called for the main window, so instead we use the QCoreApplication::aboutToQuit signal to save app and widget state.