Updated patch. Changes:
- added documentation
- avoid port conflicts with running instances
- added tests for pg_basebackup -T
- removed TODO tests for rejected pg_basebackup feature
A test on Windows would be nice. Otherwise we'll let the buildfarm do it.