Introduce popwin-mode.

Now use display-buffer-alist instead of display-buffer-function,
which is deprecated since GNU Emacs 24.3.