Added advanced task scheduler
Using new scheduler for tasks
Merge pull request #583 from dswd/tasks

Tasks