Expires headers, and gzip middleware.

Closes #517
Closes #519