Get query and sort info down the stack.
create a SubCursorGenerator class, and remove some of this functionality from PartitionedCursor
create new SubPartitionIDGenerator class. Further simplify PartitionedCursor class
fix some tests from work done so far on Partitioned Collections, unrelated to this change