more work on rules

disallow removing a device if a rule still refers to it unless
parameters contain information on what to do with those rules.