Add debugging of sent/received protocol codes. May be overly verbose.

Signed-off-by: Nick Minkler <sleaker@gmail.com>