Minor fix to delete_entity/3 API func
REST: generic deletion support
Internal API handles deleting subsystems
added delete_check for tags
REST API support for entity deletion