Add rules attribute to folder. Add update_rules method.