Complete connection tree data types.

Neatens up parts of code, adds receiving end tree elements.
Connection tree code moved into connections.

Moving toward building a full connection map.
TODO Provide methods for connections to provide their own reductions.
Migrate filter functionality into connections code.