JavaScript events factory that allows you to swap out adapters for various libraries like EventEmitter, jQuery, etc.