lightd: cleanup udev code
lightd: refactor udev code further
lightd: rename and refactor udev code