Some changes of the entity creation code. Removed obsolete shared pointers from some components APIs.