Began implementing new method of adding rules without periodic timer.
Also added improved documentation for add_rule() and remove_rule().
Marked add_rule() and remove_rule() as critical sections.
Mutual exclusion is imperative here since other modules/extenions may
be simultaneously adding/removing rules, thus putting the value of
@next_id at risk of becoming inconsistent.