Modular, scalable and distributed safety applications