Move desktop mode configuration to separate file

Fix hangs when desktop encounters auto-save files while starting emacs
in daemon mode.