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

Each TODO in the code should have a matching bug in bugzilla with the bug # in the comment.