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

Yeah, but this patch is already not-so-small :)