#4580: Adding/removing nodes/links fully working.
#4580: Made common logics for objects+simplifying