shutdown: improve dry-run mode.

Automatically enable dry-run mode if environment variable
SHUTDOWN_DRYRUN is set (will be used by xsession test mode).
shutdown: add hibernate/suspend support.