Add HEAD method for document REST api, closes #180