Fix a bunch of bugs

Use postgresql-simple instead of psql to hold tunnels open.

Better port availability detection allows multiple instances of redsql to run
at the same time.