Bug 1041124 - [Messages][Refactoring] Make use of EventDispatcher in MessageManager. r=julien

I'm using the implementation from ```XPCOMUtils.jsm``` + some checks to verify parameters here, what do you think about it?