Work in progress contributions for Postgres + AR 4.2

Hi,

This is work in progress towards AR 4.2 compat only for Postgres. I'm still coming in short on indexes and the command recorder for migrations ( https://gist.github.com/methodmissing/fc23dc940cbb939abe39 ), but it's over my head for missing context at the moment ...

- Lourens