added stages and caching for shader resources
Merge branch 'master' of https://github.com/chrstein/x3dom