Finished 1st version of queries. Some initial work on relations.
Merge branch 'master' of https://github.com/PureSolTechnologies/xo-titan