Fixed cron.c and some of the demo functions

Fixed cron for jobs and timeouts.
fixed uptime application and countButtonCount