Initial pull request for Scheduler

Instead of boolean we should use APIResult class as that is more informative. In case of errors it can include error messages as well.