Added rootEntity to entityManager. Spawn/despawn function add/removes entity to root entity.
Modified cog.defaults, so that it can deep copy.