Major overhaul of Plot to remove D3 dependency. Still some work to do, but we get
plots without D3 now.