move listRooms and joinRoom to the server
effort on #40
Merge pull request #52 from incompl/40

PR for #40