Sort rules by sequence
New API for the rules which can be extended

Each rule implements the checks it want and they are evaluated one
after the other, the first rule that returns True is applied.
Implement the dunning fees rule using the new API