[keyserver] Extract publishPrekeys to a separate function
Summary:
Needed for ENG-6544 to handle invalid auth from one place
Depends on D14026
Test Plan: Flow, ran keyserver locally
Reviewers: varun, kamil
Reviewed By: kamil
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D14027