Send sub-tasks to celery properly, even post_request_tasks (bug 1021158)

post_request_task before this patch only send tasks to celery inside
the request-response cycle, preventing indexation from being triggered
from inside a task (outside the request-response cycle).
some pep8 cleaning
remove references to global header/footer submodules (bug 1025263)