Added support for AMD module loading (requirejs).

InsightJs can now be loaded using requirejs but the dependencies (d3, d3.tip and crossfilter) must still be loaded using script tags on the page.