fully featured partitioned collections

Here is the work for partitioned collections. A review is appreciated.