Initial port to D3.
Add initial package.json file.
Add legend.js.