Support run-time parameters in connection strings

This should be compatible between libpq, and supports setting some parameters easily in the connection string.

Builds on top of #157.