Replace FrameState.events with FrameState.afterRender.

Instead of deferring raising events, primitives can push functions into afterRender to defer any kind of work until after rendering.
Merge pull request #1488 from AnalyticalGraphicsInc/gltf_fixFrameStateEvents

Replace FrameState.events with FrameState.afterRender.