Merge pull request #8 from cachapa/master

Implement more message types
Fix "keys" message parsing

Add encoding and decoding tests