Support setting end dates for reports

Make it possible to get the report for part of a year, especially
useful when trying to find out why things auto-imported don't match
reality.