head request

added functionallity for doing head requests on both types and specific
documents