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
Firstly I thought we might need this for other purpose, but all the selection related stuff should be in Selection handler actually. So you're right that we should remove it.