Split chat client development into components

* All files of the chat folder are combined together as chat.js