WIP: Pgsql major rewrite with features

This is a major rewrite of the postgresql module, an implied version 3 if you will ... that fixes a number of internal ordering issues while also cleaning up a lot of the public API.

There are a lot of changes, which I have outlined in the upgrading guide inside the README.md so you should drill into that for more details.