Massive refactoring - combined sensor_watcher and switch_worker into gpio_helper, and added gpio_mock.