dimmer: code cleanups

- remove BIT macro
- remove syslog
- cleanup fds
Merge branch 'master' into devel

* master:
  dimmer: code cleanups
lightd: fix the service file
lightd: cleanup printing logic
lightd: should also flush in update_power_state
lightd: don't reset backlight on exit
lightd: code cleanups
lightd: fill out some error messages
lightd: typod status message
lightd: update battery profile
remove CLAMP macro
add/improve version messages
add ycm config
move to _XOPEN_SOURCE 700
move _XOPEN_SOURCE to Makefile
lightd: add --timeout flag
lightd: pass --dim to have it dim