Refactoring of NzNetwork

NzPacket now uses COW instead of raw pointers.