Store tasks in localStorage.