added a controller to each directive to abstract the d3 call, paving the way to override transitions
added objectequality example