pin to given psycopg2 version.

We are using "with" keyword and that available in this version, not previously
Use ini file to define postgres connection string

Various changes to capture the postgres connection string correctly, mostly passing
conf into views.