Support for celery 3.1.4 and support datetime serialization

Celery 3.1.4 deprecates a signal, but also caused a regression that exposed a bug in how we were extracting the task id.