add messages.cpp

todos:
1. post string still empty;
2. server returns need trans to String object