Ported some legacy OpenGL to use MatrixStack

Also hacked around a bug in LWJGL context requests, and added some more
utility methods to Shader, MatrixStack, and GFXContext files.