[Philip] Refactor out parse_message and try writing some tests
Merge branch 'master' of github.com:phlip9/txtcoin