Utility cleanup

This removes code duplication in utility js files: now there's only webgl-test-utils.js, and the old webgl-test.js which used to implement a subset of that is gone. The changes have been tested in Chrome and Firefox, no issues seen. Minor changes are needed in open pull requests to make them work with this.