Flake8 changes.
[Bug 1062401] Token authentication for API access.

* DRF Token authentication method.
* API endpoint to get tokens from.
* Cron job to clear out old tokens.
* Fixes for other DRF code that doesn't use token auth.