* tests/*.py: use the DSN constructed in tests/__init__.py. * tests/__init__.py: allow setting the host, port and user for the DSN used by the tests through the environment.
Most of the updates have been provided by James Henstridge. Closes ticket #195.