Ported CC3Resource

* started cleaning up classes
* started cleaning up shader code