Date end correction / sort order

Data points for all modules except those with a 'period' attribute are requested in descending date order, so no need to reverse the array in the response. Types with a period attribute include single time series.
End dates incorrectly come through from the API as midnight of the following day, so allow this to be corrected. This correction should move to the API itself in future.