Take a more OO approach to handling the d3 data

I think you might be able to replace some of these with ``_.where(this.components, {type: 'connection'}``?