Adds functionality for clean-up of task and list references when deleting tasks or lists