Use iD.actions.DeleteNode when removing nodes

They need to be removed from any parent relations.
Also, make sure to uniq child nodes, otherwise the
start/end node over-contributes to the centroid
calculation.

This action needs tests.
Fix hash with selected id