Implemented proper handles for textures, samplers, and surfaces. Deleted all the device and renderer related cruft.
Made buffers and shaders to use safe handlers. Fixed some doc annotations.
Fixed the tests