merge fix attempt (still broken)
compatibility updates
more merging
changed global/regional stat methods
more compatibility changes
added mousover flag and various compatibility fixes
fixed line drawing methods to hangle gaps and extreme values properly
removed console.log statement
added a containre for buttons and fixed various dialog components.
css for the legend (move somewhere else?) and dialog components (could still use some work)