Add local copy of d3

Also update JQuery references to use local copies.
Merge branch 'local-d3' into next