Use same .env file for backend processing too

Dotenv is pretty cool.
Improve caching/gzip and DRY up API headers