EventEmitter implementation using the “frozen closure” pattern as described by Douglas Crockford.