This pipes all event calls through a new EventEmitter trait, which substitutes the October Rain event emitter trait. The view event has been moved to this trait also. Pass some variables by reference to allow multi-extension. Fixes #2420