Changes to support a flexible per-submission penalty regime.
FInalise implementation of penalty_regime capability.