Hooked up aggregation framework to slice resource

* SELECTs with aliases (this AS that) use the agg framework
* Queries now hold only text, which is parsed when converting to Mongo