max, map, and range were pulled out of protovis and put in math_utilities. Additional calls to protovis, missed in previous commit, were changed to refer to new utility functions abstracted from protovis.