Converting d3 tree to have elbows

I searched high and low for one that had the angles that I wanted.

When I found none, I converted the existing example to what I needed.

Code in a gist

My version

Right angles, +/-, node removal

Original example

Not the prettiest, but took care a lot of the heavy lifting