Renamed TemplateManager to EntityTemplateManager.
EntityManager now owns EntityTemplateManager and ComponentSerializer (and instantiates them when constructed).
Fixed up examples to cope with the changes.