Fix distribution chart's link to JSON data
Set data API caching headers based on time to next value

Responses which only contain past values receive a far-future expiry
Ensure that EstimateDistribution is sorted for the iterator