Fleshed out connection and ReplicationPool classes a little.