Some new created profile files are write protected, for example bookmarks.html and localstore.rdf
OR existing perms with 0600 instead of 0644 and fix some line endings from my first patch.
r=dveditz
git-svn-id: svn://10.0.0.236/trunk@218657 18797224-902f-48f8-a5cc-f745e15eee43