Added support of creating an entity from a template.
Added typeid to entity templates.
Merge pull request #6 from Archytaus/entity-templates

Added support for entity templates