Port replication http server endpoints to async/await.