refactors DocId and ServerId serverrpc type back to string to avoid string casting pains