Added 'entityType' config parameter to defineEntity().
Documented 'entityType' option better.
Merge pull request #6 from xi-project/entity-type

Added 'entityType' config parameter to defineEntity().