Factored out most logic of Windows context creation into WGLContext class.