Refactored the code to use new service manager.

* Added a simple service manager.
* Added an abstract WorkflowService
* Implemented a MakeflowService.
* Refactored Makeflow to not generate shell scripts.
* Other minor improvements.