Tag: a distributed control system