Made changes to game and window to support debug contexts.

Also removed legacy glfw functins