img.shields.io suport

This switches to using img.shields.io as the backend.
I've also refactored a lot of the request logic to remove duplicated code.
And added support for the other image formats of img.shields.io, so pypip.in will now support svg badges.