Bug 1084298 - [Messages] Decoupling the all inputs query logic from DOM tree structure

- Add map for each view for maintaining the data for rendering/selection
yep; we could say Threads....messages actually returns a promise, so that we can either load from cache or load from MessageManager.getMessages. But clearly out of scope for now :)