Moved data structures keeping track of users, chats, chat members to the clientside class rather than the guis