Add AMD support; bump version to 1.0.0.

Related mbostock/d3#1693.