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
why didn't you keep removeThread here? It looks like deleteThreads does useless stuff for drafts thread. Or is it only for consistency?