Add basic rule generator UI

Add basic ui generator for rules.  Still a few issues
* Need to save the rule type constant name instead of the index of the
rule type array.
* Need to add another rule and build a mechanism for saving the corret
 rule_params hidden field.
* Need to factory out re-writing the rule types and load from
* Settings.yml