Use cached db rank for leaderboard views.

The code that @CodeBlock wrote into tahrir at Flock was later moved out into tahrir_api and used to build a rank cache.  This pull request then makes use of that code again in tahrir.