Add script to iterate examples.
Add allowDirectiveRestrictions rule.

Closes #9.