refactor
working on back to lobby
extracts gateway and Context objects
finish back to lobby functionality
rough ui for game, refactor js