Multi-tenant tables

Work to support multi-tenant tables based on shared physical tables.  Includes DDL-, DML- and query-related changes.  Related issues: #296 and #356.