Switch to protobufs, more networking code