All Endpoints are now EventEmitters.
Added some tests.