Compute new due time of recurrent tasks.

Also started implementation to create update tasks.
Some small beautifications.