Normalize histogram values to be plottable

We convert NaN, Infinity and -Infinity values coming from the server to
values that Rickshaw can represent. Ref #977