Bug 1074732 - [Messages] Create a mixin to handle the select UI model

- Unbind the selected inputs logic from DOM tree structure. Create a selection module that listens to input select changed and return the selected data.
maybe rename to `selectedCount` so that it's clear in the code later?