Added ResourcePointer class to handle unloaded resource referencing

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>
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>
Merge pull request #494 from bergerkiller/master

Changed String model path to a ResourcePointer
Fixed a bug with SimpleRegionFile
- isClosed() = true did not guarantee that it was safe to open a new SimpleRegionFile with the same name
-- The map was updated after the update to the atomic variable checked by isClosed()
--- Added full syncing

- Removed closed AtomicBoolean, as it did nothing

- Fixes a bug with MappedRandomAccessFile
-- write pointer was not adjusted correctly after write
-- seek was always used before write anyway

- slight tweak to the block locks
Missed a variable
Normalize quaternion axis vector

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>
World generation improvements

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>
Merge branch 'master' of https://github.com/DDoSQc/SpoutAPI