Cleaning up file tests and adding last-modified header to file responses

Closes #519