Move worker framework to Celery

Celery is a popular task queue framework for Python, with native integration with Flask. Rather than rely on homegrown lockfiles and logging, Celery would allow for easier worker management and an overall more reliable application.