Add legend

Here's some work to add a legend to the visualization.

I also took all the js libraries that were being loaded from 3rd party sites, and added them locally.

cc @nickmcclellan @pdarche