[lib] implement UserStore spec
Summary:
Add code with required ops.
DB function are implemented later in the stack.
Depends on D9761
Test Plan: Flow
Reviewers: tomek
Reviewed By: tomek
Subscribers: ashoat, wyilio
Differential Revision: https://phab.comm.dev/D9796