Fix some broken interactions between cloudWasEnabled and cloudEnabled.

[FIXED]     cloudWasEnabled was updated too early.
[FIXED]     loadLocalStore set cloudWasEnabled to YES instead of NO.