Full OpenGL Context managment refactor done. Fixed minor bugs.