simplify TPayload.

Now directly use readStruc/writeStruct method in protocol.
add container tests
bug fix for write/read string of non-western chars