Enable checking if file exists with a HEAD request

Implements #67.