events: define properties on prototype

Speeds up EventEmitter object construction by about 15-20%.