Adding support for d3 Tree Layout API and collapsible tree demo