Add integer-to-field helpers
Add test suite for protocol.h
Add constant definitions for codes
Implement message type validator
Get rid of array-of-fields; just use pointers
Create struct representations for messages