Refactored the OpenGL 3 loader.

Eliminated a few hundred lines of code, including redundancies. ARB functions used as extensions and core OpenGL functions are now loaded in one place only. It seems to work, though I've only been able to test it on my old box which only supports 3.x.