Small improvements for the share file case

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Remove warnings (unused imports)

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Improve the delete notification and UserProfileTask

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>