removed the event.js dependency by outsourcing the event-emitter impleme...

...ntation into it's own module