Added uncommitted relation icons

This includes some code reorganization to be more in line with D3 style and to make the relation rerendering easier to work with.
The above changes are more in line with D3 style - run the select against the filter, rather than the other way around.