Changes use and require to :use and :require and fixes bugs in join-room and leave-room.