Initial refactor to d3 node/smash style

In response to Issue https://github.com/jakevdp/mpld3/issues/101