Use Flask for dev server
Modularize and abstract d3 code
Add dynamic legend