New app scheduler (not working). Some template changes. And moved apiupdate to scheudler.