Factor out Peer, Torrent to clarify static analysis. Connection routine now OK. Start hooking up state machines.