Adding new method 'createSchedule' to allow dynamic creation of schedules

I've personally wanted this functionality so that I can create dynamic schedules at runtime, and not just in the configuration.