More complete structured query API, facet support, + other general improvements