Add peristence of Facebook logout across application restart and stopping sync replication on logout.

This pull request adds the feature of persisting the logout when the application is restarted.
It will also stop the sync replication on logout.