Upgrade to rails 4.0 and add some initial cron tasks