added api for chat, implemented post already
Added methods to joingroup and send groupchat message, also created methods to be called with ajax to send messages
rounding up the chatmessage sending and receiving