Cleanup window-managing code

* slime.el
(slime-with-popup-buffer): redesign. Don't take :mode arg.
(slime-popup-restore-data): delete it
        (slime-make-popup-buffer): delete it
        (slime-init-popup-buffer): delete it
        (slime-display-popup-buffer): delete it
        (slime-close-popup-window): delete it
        (slime-save-local-variables): delete it.
(slime-popup-buffer-quit-function): delete it.
(slime-edit-value-callback): don't pass :mode to
slime-with-popup-buffer.
(slime-show-compilation-log): idem
(slime-edit-value-callback): idem
(slime-show-apropos): idem
(slime-create-macroexpansion-buffer): idem
(slime-list-threads): idem
(slime-list-connections): idem
(slime-inspector-buffer): idem
(sldb-setup): no seed to save window-variables.
(sldb-setup): just `pop-to-buffer'
(sldb-debugged-continuations): simplify
(slime-inspector-mode): No need to explicitly list maps in
docstring.
(slime-inspector-mode-map): Override q key using keymaps.

* contrib/slime-clipboard.el (slime-clipboard-display-entries): Don't pass
:mode to `slime-with-popup-buffer'.

* contrib/slime-compiler-notes-tree.el (slime-list-compiler-notes): idem

* contrib/slime-media.el (slime-dispatch-media-event): idem

* contrib/slime-sprof.el (slime-sprof-report): idem

* contrib/slime-trace-dialog.el (slime-trace-dialog--open-detail):
Simplify. Use `slime-with-popup-buffer'.
Remove XEmacs compatibility layer

Also use declare specs instead of top-level `put'

* slime-tests.el: Don't use xemacs compatibility layer.

* slime.el: Removed xemacs compatibility layer. Use indent specs.
Don't set `compile-command' file-local var.

* contrib/slime-autodoc.el (slime-autodoc-maybe-enable): move to appease
byte-compiler.

* contrib/slime-fuzzy.el (slime-fuzzy-choices-buffer): use just `add-hook'.

* contrib/slime-fuzzy.el (slime-fuzzy-choices-buffer): use just `add-hook'.

* contrib/slime-presentations.el (slime-presentations): use just `add-hook'.

* contrib/slime-repl.el: Don't use xemacs compatibility layer. Update
indentation.