Tweak version generation.

Instead of relying on sed to replace a VERSION token, we generate
`src/version.js`, which defines the internal `d3` variable with the
current version derived from package.json.