Initial support for HEAD requests

This commit adds support for HEAD requests on the /files/ urls