CFY-1308 some refactoring.
CFY-1308 added required dependencies to celery (wget and sudo)