Documentation and name changes.

+ Add code documentation.
+ Rename "triggers" to "rules".
+ Rename "assign_on_[insert|update]" to "process_on_[insert|update]".
+ Add "add_matched" config item for better configurability.