Made progress on refactoring to single-page app
refactor lobby into spa
Finish refactoring lobby code