Load view state before generating the HTML.

Also forces CodeInspection to wait until the app is ready before updating the status
bar.
Don't start firing preference change events until appReady.

This is part of the fix for #6944. With the change in loading for
set up, causing errors for things like the status bar. By pausing
the preference changes until appReady, we avoid any code attempting
to alter the HTML based on preferences until after everything is
set up.
Set project root path to the project layer immediately after loading the project so that project tree (expanded/collapsed) states can be restored.
Explicitly provide project root foler as layer ID so that new project-based keys can be created before recording view states in those keys.
Migrate project base url that I missed to convert since it is also one of the old preferences that uses the prefix with the project root path as keys.
Actually set the USE_TAB_CHAR pref when it needs to be set.
Merge pull request #7005 from adobe/dangoor/6996-switch-to-tabs

Actually set the USE_TAB_CHAR pref when it needs to be set.
Merge pull request #7004 from adobe/rlim/project-based-migration-issues

Fix three issues in project-based view states.
Updated nls/README.md Step 3 to correspond with the new location of LOCALE_* entries
Merge pull request #7009 from mjherna1/6587-switch-language-uses-self-name

Updated nls/README.md Step 3 to correspond with the new location of LOCALE_* entries
Track performance impact of user viewstate loading
Merge pull request #6992 from adobe/dangoor/6944-sidebar-width

Cleans up viewstate loading at startup
Merge branch 'master' of https://github.com/adobe/brackets