Nick Refactor Weave function

moved out some of the code in the weave xml to make a weave function in
the procedural library. Also removed the #extension GL_ARB_gpu_shader5,
Include surface, state and _state calls. These are not need since mari
always loads up the surface.glsh file before all of our functions.