[lib] Move user infos update reducer into specs
Summary:
Create new state by merging infos from store with the ones from action, and then iterate through the updates and apply the function from a spec. Changed the approach slightly - instead of mutating the freshly created new state, return a new one from a spec (might be less performant, but is more maintainable).
Depends on D9268
https://linear.app/comm/issue/ENG-4241/handle-processupdatesactiontype-as-a-part-of-a-spec
Test Plan: Check if updating user infos work correctly: when adding a new user and deleting them.
Reviewers: kamil, bartek, inka
Reviewed By: kamil
Subscribers: ashoat, michal
Differential Revision: https://phab.comm.dev/D9296