[WIP] SVG badges

I need to write a few more tests, but this is working.