Fixing WebGL

Initialize proper context in case of webgl throughout caat.
Fixes the following errors:
  WebGL: INVALID_VALUE: vertexAttribPointer: bad size, stride or offset
  WebGL: INVALID_OPERATION: uniformMatrix4fv: location is not from current program

This is work in progress and still has some issues. It is still unclear how dynamically rendered textures via a 2d canvas can be included in webgl.