Changing constructor signature of GraphicsDevice to take a CanvasElement. Moved WebGLRenderingContext querying there.