Add helper destroyInvalidConnections to Terminal.

Used in current workflow and reused in different context in collection code.
WIP: Modify workflow editor for dataset collections.
Workflow Editor for Dataset Collection - Since Afternoon of 4/24.
Mechanism for connecting far away nodes.