[identity] Add function to get device list history
Summary:
Part of ENG-5049. Adds a function that queries all device list updates since given timestamp, or all updates ever if no timestamp is given.
Depends on D10246
Test Plan:
Added three updates with to DDB.
- Without timestamp, all three are returned.
- Given timestamp T, where U1 < T < U2 < U3, the function returned U2 and U3.
- Empty list is returned if timestamp is after all updates.
- Empty list is returned if the user has no device lists yet.
Reviewers: varun, michal
Reviewed By: varun
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D10247