Renamed list_item_rules to simply rules for ease of use, added JS support to the rules form so that we can dynamically change the form based on rule type. Also added a rules manager to basically serve as a "rules model", with methods to get selectable rules, etc.