Add ability to require a special option for a discount code

This can be used for example to make a discount code that's only
valid if a specific additional option (such as "training X") is
also selected in the registration.