fedeproxy: refactor identities and how they are used

1 job for wip-fedeproxy in 16 minutes and 1 second (queued for 3 seconds)