Rewrite Renderer to use prototype; refactor lobby code; add debug logger