Removed debug arguments from layout methods.
Fixed snapping of pinned nodes.
Made node layout undoable.
Introduced stopping constraints on the layout algorithm.

We now stop the iterations when in the previous iteration no node moved further than a given threshold.