Add documentation for hooks defined by Wikibase.

Change-Id: Icf34bbafee9bd3d39693851cc8b679fdb3bafa85
Merge "Add documentation for hooks defined by Wikibase."