Switch to using the img.shields.io service. Fixes badges/shields#83.
Refactor the shield-getting code.
Factor out the main request handling logic.
Add support for all the image formats img.shields.io does.