Corrected the file permissions of the cron template.
Changed the way how the cron schedules are managed. Cron creation and schedule changes are exposed by php functions.