Add HEAD method for document REST api
Merge pull request #181 from finnp/http-head

Add HEAD method for document REST api, closes #180