moved data structures keeping track of users, chats, chat members from guis to clientside class