Add support for OnGamePause and OnGameResume events.
Remove some dead code.
Scene Editor: Fixed a bug where the scene state would not be restored correctly when stopping playback.