Add support for generating badges

This lets the confreg system generate PDFs with badges.

The format definitions of the badges are defined in Python files using
reportlab, which are then automatically merged with the data and laid
out on pages.
Don't crash when trying to draw an empty string