implement peer msg serialization and add tests
fixing extended message parsers(not tested yet)