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

Yeah, I see your point, probably ```{ listeners: new Map() }``` would be event better.