Server is now an EventEmitter, and fixed an export issue