Merge pull request #14 from Cheeseen/master

Adds test for create and delete rooms.
unit test and fix for listRooms
closes #8
closes #11
Improves readability of createRoom.
Adds internal emitEvent function abstracting guard logic with similar api to socket.emit(). Adds 2 passing tests.