Implement RcsThread querying (provider)

This change does a first pass to introduce RcsThread querying. We can
now insert threads and query them back.

Test: Added unit test

Bug: 109759350
Change-Id: I73e134e8c869f255b179cd2c87d8cb013fb19a36
8 files changed