a little reorg to separate things

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
peer: add an encoding test

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
peer: switch to an encoder

update expected test results

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
Merge pull request #2 from vbatts/reorg_and_encode

Reorg and encode