Moved gl-util.js to resources

Also overhauled a lot of function names as well as the implemnetation
of the gl-util methods. They will all be pure-functional methods that
don't store any internal. Everything, including the GL context, is passed
through parameters to do stuff.