Added validation to jid and password
Change to websockets and CORS
Implemented disconnection
Added title with timestamp and type to each message in console