dimmer: code cleanups

- remove BIT macro
- remove syslog
- cleanup fds