move create room function to populateRooms factory

A further refactor of main.ctrl. Looks like it works. Giving this pull/merge a shot myself....