Changed setWindow interface

setWindow now supports multiple grayscale ranges, from 1-bit to 16-bit.
setWindow now takes width and center as arguments, so
setWindowWidthAndCenter has been deprecated with extreme prejudice.
Updated webgl.html to demonstrate new interface, and added test pattern
to confirm correct mapping.