Added persistency for window orientation and state. Initial skeleton for supporting the MountNotification interface in the mainwindow.