Dramatically refactored network, peer, and bitchat.