webgl-waveform now partly works

Shaders and buffer code seem to be functioning ok, but the other bits
don't yet work.