Bug 976231 - leaderboard template

With a few base changes, too
Bug 949555, 976809: Add leaderboard update to nightly management cmd.