Adding on_required and on_notrequired flow events

A config channel template can specify on_required and on_notrequired in
addition to on_success, on_failure and on_after, for flow control
during the configuration run