Add project_write_config() to force project file rewrite

Since plugins don't have direct access to the project file,
only through the project-save signal, they need some way to emit this
signal when saving their preferences outside the project dialog,
which is what this function does.
Merge pull request #361 from techee/prj_write

Add project_write_config() to force project file rewrite