Added generic scheduler and workflow scheduling functionality.
Add scheduler and workflow schedule functionality
Merge 1.9 changes into Head