Save history across sessions.

This includes recent files, and the minibuffer history.