Huge refactor - EntityRef is passed around by value now, not by pointers. EntityManager does not hold a list of all the EntityRefs.