Adds code for networking with new protobuf refbox.