slrubinstein/snap-room — pull request #10 by slrubinstein (2014-11-27 22:33:12+00:00)
Title: refactor main ctrl functionality into factories and control with promise...

#7
moved geolocation functionality into geolocation factory
moved search for and population of rooms into populatingRooms factory
changed getRoom() to enterRoom() in main.html/main.ctrl and moved functionality into populatingRooms factory (maybe I should rename that)

Add promises into those factories to control flow. I think it could maybe be refactored to make it a little more semantic, but I added comments in to explain.