Simpler assignment of port
Use -w to pg_ctl so exit status is properly reported
Merge pull request #160 from tildeslash/portnumber

Report startup status correctly