Added Z order for entities

- Z order for entities, both local and global.
- Added test to see if we can get away with not adding child entities to
the scene.