Clean up selection code and move it into separate behavior and parse filter query to fetch selectable rows. refs #9054 refs #9346