Add state qualifier table

    This refactors the existing rule code and reuses it for state-quals.
    - All/Selected Only radio toggle not hooked up
    - Not hooked up to display yet