update html for app-namespaced ids to avoid possible conflicts
a little more separation of code for building the legend, building the graph; change tooltip into a single overlay style
update testrunner wrapper