[web] Update validateStateAndProcessDBOperations to handle RawThreadInfos
Summary:
Add some branching to validateStateAndProcessDBOperations to handle RawThreadInfos.
(Also snuck in a super minor type name change in initial-state-gate to wrap up all the Flow work in web)
As of this diff there should be no flow issues in web or lib, just need to fix up native (specifically migrations).
NOTE: CI is expected to fail. I got to a point in my local environment where all flow issues were resolved, but based on earlier fedback in the stack I'm breaking them down so things are easier to review.. even if that means that intermediate steps fail.
[skip-ci]
Depends on D10275
Test Plan: CI/`flow/etc.
Reviewers: ashoat, ginsu, tomek, rohan
Reviewed By: ashoat
Differential Revision: https://phab.comm.dev/D10277