jj svg chart cleanup

Added a template directive for d3 directives. Shows how to set up watch functions for data change, where to drop your d3 code and how to auto-resize your svg.