unquote taskPolling's Json result.
TaskStatistic now have member functions: getTIDs, getTask. Moved from RunningTaskStatistic
sigTaskCompleted doesn't fire a lot when the app starts up
add TASK_STATES definition