optionally restore previous window conf after killing Magit buffer

`magit-buffer-switch' now stores the previous window configuration in
the new buffer local variable `magit-previous-window-configuration' and
`magit-quit-window' restores it after killing the Magit buffer iff the
new option `magit-restore-window-configuration' is non-nil.