Bug 1077668 - Configuration cannot be changed on a EAP's child resource ...

...with

the same name as the resource previously removed

When merging inventory report coming from agent and we don't find match by
resource ID, resource is looked up by parent and resource key. If such
resource is found and has InventoryStatus = DELETED (meaning it was
explicitly deleted before by user), we no longer merge those 2 resources
together, but rather really delete the old one and leave the new one to be
really new (will get different ID). This change fixes 1077668 because
re-created resource won't hold any data (configs, operations, metrics,
alerts..) from previous resource.

NOTE: in case user manually Uninventories resource, we don't keep configs,
operations, mertics etc either. So this commit also aligns both features
(while Deleting resource also means an action on agent to physically remove
the resource)