implements S3 HEAD request. via @reedobrien