Chat functionality

The following chat functions are now supported: list chats for user,
list single chat contents, add new chat, remove chat, add user to chat,
remove user from chat, add message to chat