[lib] make Identity keys types more generic
Summary: We want to use this type for all devices, not only the keyserver.
Test Plan: Flow
Reviewers: tomek, varun
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D10748