pulled test support logic into its own part
added gateway to represent the c++ table gateway for each table
midstream updates for supporting test with multiple tables via transitive closure of foreign keys (making sausage)