MaterialDebugAppState now properly applies renderStates
Added a set method in RenderState
Fix an issue in the ShaderGenerator where it was unable to find the  main function in a shader source when there were additional spaces.
Also made the error more explicit when the matching fail.
Merge branch 'master' into per_geometry_scissor