cleaning up master_control and moving PeerConnection class to peer module