Begin work on query service.
More generally useful queries + support for recursive traversal.