update chats to send data instead of html

hey this one will go along with the angular chat in the client repo