Added JSI function to call logOutPrimaryDevice.
Depends on D12584
Native compiles. Tested together with the next diff
Rebase