Some reorganisation: allow nginx or apache, allow gunicorn on unix
socket or localhost:port, don't break if no .pgpass
cleanups
cleanups