Packet parsing is now one function.
Preperation for moving it into a base class. Done using a filter functor
and passing in from server or client to determine how to encode and decode.