Migrated to node EventEmitter/allow api-compliant middleware.
Merge pull request #10 from benastan/migrate_events_to_event_emitter

Migrated to node EventEmitter/allow api-compliant middleware.