SVG overlay: simplify and unify treenode and connector deletion

There is now only one method to delete both connector and tree nodes. This
function checks for permissions, unsets the active node and makes the appropiate
backend calls (which handle the result just like before).