Update project file directly after first load and after setting changes.

 * Make sure to save project name / other settings immediately to prevent data
   loss if Valama crashes etc.