Rename some local task variable to be more consistent

Rename task to 'att' or 'def' to avoid confusing them.  'task' was used
sometimes to mean the task attribute, and sometimes the task definition
in the same file. This makes things confusing, so don't use 'task'
anymore, use 'att' or 'def'.

Also rename some 'def's to 'name' when it only represented the name of
the task.

Change-Id: Iea74471f504106c65552ec7a3a1b957902fa0b3d
2 files changed