Added uptrs, using for RenderState & SamplerState atm. Cleaned up a little of the resource creation and open, update, close phases of RsCoreImpl.
samplers are parsed from materials now.
Passed new sampler state all the way to the renderer.