Ensure the topology takes the correct shape.

This connects and disconnects peers until the requested topology matches
what was requested manually, or by one of the topology algorithms.
Add automatic firewalling for replicas.

This adds automatic firewalling so that all the replicas have the right
ports open, and only the right ports open to the right replicas.