EntitiesModel: added getParentTag, fixed isEntity

Also: annotation property added to entity entry on creation.