D3.js + angular's $rootScope + $apply = interactive application state tree