Added CELERY_SEND_TASK_SENT_EVENT variable
Deleted while loop and session management.
Implemented taskid management using a file to save it. This way we can
restore it and cancel the current task.
Implemented manage_taskid function to manage the task id in case we have
to cancel the task.