gl2: s/renderer/device
gl2: use more idiomatic Go
webgl: add skeleton implementation.