Add server log event when people join waiting room; add defensive checks whenever accessing object arrays activeClients, activeDiscussionRooms, or activeQuizRooms; replace undefined type checks with 'in' operator