Break out the GL handling code from the JNI bindings.

Next I can make a standalone demo app for desktop.