Use locks to coordinate among wait(), launch(), &c
Sort Docker ports for consistency's sake.
Many fixes to signal handling.

Still need to come up with something for handling SIGTERM and wait.
Parameterize sleep setting in PG test.
Clean up locking.