Fix attr_accessible and some clean-up.
Use whenever for cron tasks.