Added a chat window and a basic chatting API