Lots of changes.

Uniform buffer for light parameters, needs fixing.
Terrain shader that does texturing according to a mask texture.
Material can use up to 8 textures.
Work on supporting spot lights.
Other fixes and changes.