More PUZ serialization work.

Abstracted interfaces to allow for looser coupling and reuse.
More PUZ serialization work.