Allow start and end dates to be supplied to stats:show

This is in the service of #1173 and #1174.