Add HEAD method for document REST api, closes #180

See #180