NEED TO MERGE THIS! - moved data structures keeping track of users, chats, chat members from guis to clientside class / created single reader, writer for clientside threads