harden and unit test headers. align with daringfireball. add support for unique anchors