Initial commit of 'limit=kN' query operation.

Is this functionality already possible and I just re-implemented it? I want to be able to limit the query results to the first N results within each group where a group is the a subset of the first couple of columns. The common use case will be something like "gather=ks;sort=0,1:sn:dd;limit=k10".