OpenGL Context Refactoring.

Device Context Refactoring Done.

OGL Extension checking Done.
OGL refactor in progress - done with contexts, main device in progress.
Full OpenGL Context managment refactor done. Fixed minor bugs.
Merge branch 'GLRefactor'