Support for idle time under GNOME without X11

* Removes use of most global variables
* Adds some some logging
* Removes unused close() method for Xss
3 jobs for idle-time in 2 minutes (queued for 4 seconds)
Status Name Job ID Coverage
  Test
passed run-pylint #4388

00:01:46

passed run-test #4387

00:00:05

 
  Build
passed run-build #4389

00:00:08