Reorganized code for the table header view, and moved most of it to its own class. TVC should be much more manageable now.