Update gnome-session commands for GNOME 3

gnome-session-quit has no --reboot option, so make the corresponding
dbus call directly.
Fix root's reboot command
Don't start a demo client or lock screen on master

If a demo server is running, probably the management interface is as
well. Avoid starting a demo or locking the screen in that case.