#66 preprocess tableData to determine select/expand states before rendering header controls

Break out header control checkbox state controlers into functions
called on row control interaction and table row initialization.

Fix bug in unit tests.