Implement background syncing of unsynced tasks. If online, syncs every 10 seconds. If offline, syncs every 5 seconds.