Created main application window
Main window saves its state
Main window starts engine in separate thread