Some refactoring of visualizer.js.

Pulled out the visualization-specific data extraction into a separate
method. Removed some comments. Adjusted Line and Scatter highlighted
point sizes. For Line and Scatter, made it so axes render first, so
points located on axes will show up on top.