bug 1276329, better scale function for progress sparklines
bug 1276329, better scale function for progress sparklines

The scale function now doesn't modify values in place, so we can
use the original values for coloring.

Pike/elmo,Pike/elmo,Pike/elmo,mozilla/elmo,mozilla/elmo,mozilla/elmo,Pike/elmo,mozilla/elmo