Use cached db rank for leaderboard views.
Avoid n+1 queries.
User page sped up from 6.5 seconds to 0.09 seconds.
Some small optimizations to user/json.
Optimize badge json.
Merge pull request #211 from fedora-infra/feature/use-cached-db-rank

Use cached db rank for leaderboard views.