[native] implement prekey rotation handler and call Identity
Summary:
- Change JSI method to accept metadata to properly auth with Identity
- Add component to call this after app is opened
- Add line to call Identity RPC using std::promise
Test Plan:
- Test if method is called
- Test if uploading works (can be done by making prekey rotation is needed) and verify this by inspecting DDB content
- Test if old cryptoModule is restored when RPC fails
Reviewers: marcin, michal, varun
Reviewed By: marcin
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D10631