Moved Listener, MemoryEventEmitter and UplinkEventEmitter in their own
files.