determine when all prefs have been written to disk
code cleanup
more code cleanup
wait for prefs startup
changes for code review
jsdoc fixes
need to keep waiting for last _saveInProgress
Merge pull request #7930 from adobe/randy/issue-7683

Determine when all prefs have been written to disk