Add a new feature : autosave when the editor lose focus

 Add a new feature : autosave when the editor lose focus (file switching, pop-up, alt-tab, ...).

This add an interesting feature that could help some developers. 
It add an unwanted behavior : pop-up saving, but I think the feature stay interesting.