Added glGetIntegerv and VAOs.

sglGetIntegerv now checks the cache for values before asking OpenGL.
Cleanup.