Changed task storage to use hashes and added preliminary task deletion.