Partitioning support

This pull request adds support for partitioning the poky table on postgresql. Since it was fairly trivial, I added support for both partitioned and flat configurations. There is also a migration to go from flat to partitioned.

/cc @frankfarmer @loganlinn