Test on Travis CI against multiple versions of PostgreSQL

Taken from petere/plsh.