Rename |struct context| to |struct task| and normalize some related style.