Add task and lastActivity info to task summary

This adds last activity time, total tasks and completed tasks to the summary allowing better history information to be shown.

Old V1 code and references to 'V2' has been removed from a few places and some unused transition code has been removed. Some unused imports cleaned up and string interpolation introduced in some places.