- handle get chat history message from another app (e.g. html5 client)
 - cleanup chat message format