started changing server over to using User and Room objects
fixed use of global variables instead of self variables, and fixed imports