Auto-save buffers when focus is lost

Courtesy of @bbatsov, see
http://emacsredux.com/blog/2014/03/22/a-peek-at-emacs-24-dot-4-focus-hooks/