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
Well, if we need to render message from this cache in the future, we'll need message object directly instead of query the message by id again. I understand we only need id for deletion or even markRead/Unread, but for the rendering I think we will need this eventually.