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
see https://bugzilla.mozilla.org/show_bug.cgi?id=1091441 as well (this is a next step)
I think the map will allow storing the message id in that fifo, instead of the full message, but then it's the same idea