Initial protocol parsing implementation.

Still some edges to polish. Need implementation of the CRC (for both
validation and packet transmission)