Extended, cross-platform, backward compatible implementation of the native EventEmitter from NodeJS