Several changes to address PR comments:

* Code implementation of optouts using user.id ForeignKey
* Move optout checking to emailing task, not delegation task
* Chunk queries to 1000 users each, using pk as delimiter
* Tests for chunking queries