Added support for the SelfLinkBegin hook.

Replaces self links on a page with the semantic title text as the link
text.

Change-Id: I33fded4a03fa2cba5caf30fbe9902c7cc9eda09b