Added shaders and program for primitives

We need this for the WebGL masks.