add .gitignore
Quit app when last window closed
Update cache for new .gitignore