Backend changes to support improved badge pages.
Add consistency check to revoke duplicate badges.
Fix typo.
Show number of grants on the admin badge pages.
Merge pull request #2480 from vikhyat/badge-system

Add consistency check to revoke invalid badges