First pass at compiler for tables. Currently missing joins, and messy copy-paste code. Table has an added reverse() method, and simplified getattr.