Simplify and finish the badges consumer.
A repr for badge rule.
Emit on badge award and other stuff for the consumer.