Clean up of network code and removed redundant "packet type" enumeration and fields.