rewrite message transmitting protocol and message handler for suspend and sync finish

61c2bc7: rewrite the message passing protocol
702fc1e: message handler for suspend and sync finish
please mainly review these two patches