Returns a new prototype-emitter class. Optionally you can pass a BaseClass
in as the first argument to mixin prototype-emitter functionality.

Once created or mixed in, you can add event listeners directly on the
class before (or after) creating instances of it. These listeners will
be available on each instance, so calling ee.emit will trigger these
listeners too.