Refactor celery tasks.

 * Implement logging
 * create utils.py