Extend EventEmitter rather than custom events.

This gives the ability to unregister event handlers.
Merge pull request #10 from nubs/master

Extend EventEmitter rather than custom events.