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
Good idea, I agree that it seems not necessary to keep the selected data. Only the keys should be sufficient for selection handler. Maybe I will use Iterator here. Thanks!