Cleanup.
Removed external dependencies.
Removed the event emitter experiment.
Removed debugging code.