Adds subscriber implementation

Feature discussed in #16 

@FrenkyNet It has some questionable parts (for example passing the emitter to the subscriber gives it full control), please review them.

I am new to phpspec, so the tests might not be the best.