Stop reason sets

Machine stop reasons can be collected together into sets, and can belong to more than one set. After a set has been defined, it can be linked to one or more machines.