add message checking of root protos

check message of server protos on encode
check message of client protos on decode
add test for root message protobuf
add test for root message on client protobuf
fix client protobuf bug

the bug is lose message head before type
fix confict
fix client protobuf