Add delete functionality of imported profile nodes.

As part of #4373 

Branched from https://github.com/openscholar/openscholar/pull/5030
This PR adds the handling of a deletion of a profile node in case it is the source or the destination of an import.