textures/sounds in json data, code reorg

textures and cut scene sound are embedded into the json data, not
loaded as external resources
code reorganizing
vertex attributes are saved with the geometry, not in the materials