As far as possible, use of the X11 display number is kept to X11-specific routines. This is to make it easier to restructure the code to add non-X11 display support.
Adds a module which can be used when sesman is restarting. This is initially used to rediscover sessions from a previous run.