[native] update session creation code to handle versioning
Summary:
This code:
- Updates contentInboundSessionCreator to decide whether to accept new or keep old session depending on sessionVersion
- Updates contentOutboundSessionCreator to return the session version (right now by default we override session and bump counter).
Depends on D11586
Test Plan:
- Make sure session creation works
- Outbound session creation cause bumping counter
- Inbound session creation success or throw an appropriate error (tested all cases)
Reviewers: michal, marcin, tomek
Reviewed By: marcin
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D11591