Classed path elements to their legend color index.

WIP, but begins code for binding legend list items to highlight data. 

 - [ ] Use L.DomUtil to create the legend to give it access to Leaflet events
 - [ ] Refactor the way the legend HTML is generated.