Changed example paths, changed depth sort function to an anonymous function

Signed-off-by: Sam Hellawell <sshellawell@gmail.com>
Added serialisation and deserialisation for the entire scene, individual entities and optionally for components. This can now be used to save and load levels. Few optimisations and comments.

Signed-off-by: Sam Hellawell <sshellawell@gmail.com>