Update task list properly after modifying tasks

REST API now returns modifed task after updating or checking so that the
task list will automatically show the modified task.