This commit adds a new GetState call to the state service in order to make leader election integrate simply with k8s using a readinessProbe.