Added some code to listen for signals from gnome-screensaver over DBus.