Fixes SOIL to have correct CLAMP enums for WebGL.
Adds debugging GL checks and limits VBOs to shorts.

WebGL / GLES2.0 can only support up to shorts for VBO element buffers
unless there is an extension. However, WebGL in particular is rather
strict. We should query for this case and use a workaround when
necessary.
Adds more sophisticated js build script for assets.