Add head method to the URLTemplate

This fairly simple implementation (just copy paste from get implementation) of HTTP HEAD method for URLTemplate. Also, response should be parsed only if body is non-empty.