Refactor tasks handling in UI

Move duplicated code to Tasks.bindToView method. Task removal
is now handled properly

Change-Id: I4d774565deba3ee28a638b10986959b5d404982b
Closes-Bug: #1297335
Merge "Refactor tasks handling in UI"