Refactored the manager code to use the service manager interface.
Refactoring clusterd.