Added the ability to deserialize from a file to allow for entity type "templates."