[Render] loading resource on demand; refactored shader create and moved the code from the renderer class into the Shader class; minor fixes