Added a TODO.
Move required_fields to be a property of BadgeRule.
Test and handle malformed triggers.
Also for Criteria.