Merge by_day and by_week commits reports into by_period.

: #refactor #api
Move finding of earliest commit time into model.

: #refactor