Support .Map() and .Reduce() on IGroupingQuery

Allows user-defined aggregations using grouped-map-reduce, rather than
just the RethinkDB pretty supported aggregations.