Change graphs to a month interval automatically

When displaying a line graph, we now switch to an month interval when
the period covers more than 90 days. This makes the graph much faster to
render in the Web browser.