Merge pull request #806 from wmathurin/unstable

Improper use of atomic
Fixing a keystore state issue on encryption key change
Clearing SmartSync user/store state on logout
Merge pull request #808 from khawkins/fix_keystore

Fixing a keystore state issue on encryption key change
Merge pull request #809 from wmathurin/unstable

Not losing state of inspector
Merge pull request #810 from khawkins/clear_smartsync_on_logout

Clearing SmartSync user/store state on logout