Badges

Slow currently, as it reparses each time. We can improve that later with some caching maybe. Resolves theodi/shared#121