[web/lib] move reading and populating data to state gate
Summary:
We need to:
- See what's in DB before calling callGetInitialReduxState() - based on this we can add params to fetch/skip some store parts.
- Wait with rendering app until data from DB is read - similar thing as on native.
- Migrate data if needed - we don't have data in redux-persist like on native, if there is no data in DB we need to get it from keyserver and put into DB.
Depends on D9949
Test Plan: Check if app still loads after refresh, and if persistence (drafts) works.
Reviewers: tomek, michal
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D9951