moved TTableModel classmethods to TTableModelBase so that it's possible to create custom TableModel classes.