Changed main app entry point to have a toggle for celery use