tor-hsservice: Implement upload_descriptor_with_retries.
!1580 (merged)
Note: This branch is based on top of the changes fromThis implements Reactor::upload_descriptor_with_retries
(the retry logic is in the backoff
module).
This branch also contains some refactorings that were needed to make this change work.