Added auto-connecting and auto-positioning for pasted nodes.

This makes use of two new methods on GraphLayout - connectNodes() and positionNodes().