Split testutils pg* functions and PostgresDb class to lib/dbutils.

 * pyrseas/lib/dbutils.py: New module mostly with code from
   pyrseas/testutils.py.
 * pyrseas/testutils.py: Remove code added to lib/dbutils.py.