Introduce timelimits to the leaderboard maker.

This code and test will end up powering these two features:

- fedora-infra/tahrir#163
- fedora-infra/tahrir#174