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

As discussed on IRC, changed to ```emit```