Add tests for peer decoding and organize project

This moves test suites around, to a structure that I think is a little
neater and adds simple tests for decoding peers from their binary
representation.