session-worker: Implement support for the different display server modes

https://bugzilla.gnome.org/show_bug.cgi?id=726380