FIX: Apply contract checks when first creating a badge
UX: CSS tweaks for badge query previews
Merge pull request #2741 from riking/badges_create_checks

FIX: Apply contract checks when first creating a badge