Added ability for the application window to save the last user position and state.