Begin migration of global state into TitleWait class with separate wmain.cpp