Merge pull request #492 from bergerkiller/master

Added ResourcePointer class
Moved serialize to CuboidLightBuffer from LightManager
Changed material model to a res pointer, adding spout model constants

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>