Created separate API and Services classes for web services; Fixed cron bugs