some support for derivatives for models with nested drivers

Also added a little D3 based dependency/derivative graph debugging tool.