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
typo: ```getInputIdIterator``` - missed _t_

Also I'm not sure whether we really need this ```input``` part in ```checkInputs``` and ```getInputIdIterator``` names  + we have ```updateCheckboxes```, maybe we can come up with better naming for all this, maybe not, it's bikeshedding, so up to you :)