Refactor the 'IdFactory".
Bug fix: Re-set the curviness of moved relations.
Tuning: Speed up to switch modes between the instance-relation mode and the relation-edit mode.