Bug 1039585 - [Messages][Refactoring] Implement EventDispatcher object. r=julien

Should we throw exception here, looks like it will help us to track possible memory leaks with wrong attempts to unsubscribe?