Updates replication scripts from PGExperts.

Tested on a vagrant pair - works a treat.