prepare for having a second service
This is related to #235.
Generalize the existing hack to integrate our lease maintenance service. This makes it easily usable for more services. For replica/recovery, we need a service that will maintain the replica.