Initial implementations of launch / waitForApp / switchToApp