Add DataSegment to common (needed for NetworkPacket)
Convert NetworkPacket to simpler representation.

It's still a monster, but hopefully a bit more maintainable and easier to
use and hunt down bugs.
Clean up unneeded code now that NetworkPacket is the new style.