Added HEAD request support, Closes #307, Fixes #146