Got DistributedManager working. Some minor refactorings. Got all integration tests passing again.