Conceptual adjustmenst and changes (yet again)

Abandoned the idea of having "const" materials, in favour of being able
to change materials at runtime later on. Added some of the code
concerning texture handling.