This adds preliminary support for renaming tables. There is still a problem where the table version will always be set to 1 on a rename. This should not be done and the version should be set to the largest value that ever was for that table.