use `globalindex.Task` instead of `task.Task` for task overview and dossier task listing.

This PR replaces `task.Task` with `globalindex.Task` for:
 - task overview
 - dossier task listing

It includes a fairly complete rewrite of the task overview view to generally improve the code and readability.