A forgotten XFlush() call in set_display_brightness().
Add infrastructure for scheduling future calls and messages.

It's not terribly efficient (a sorted linked list...), but should be
sufficient for present needs.
Add flash-active switch-indicator.

Configurable with a brightness fraction and a duration (in seconds).
Allow explicit 'none' as switch-indicator.