Reorg structure to make table and api business more independent of minilinq, and more testing