Add Ability to Run Command Upon Completion

This change adds an 'onComplete' key in the rules file. It contains
a command list which behaves the same as the other rules. It also has
a flag 'onlyAfterMatch'. If true, the commands are only run after the
script has detected a match.