Improve hook registration

Change-Id: If2e9578af48acfb548cca8dfa05d114b480b58a8
Merge pull request #6 from SemanticMediaWiki/issue4

Improve hook registration
Fix TagCloud isHTML setting

[1] http://semantic-mediawiki.org/wiki/Thread:Semantic-mediawiki.org:Community_portal/Demos_not_working

[2] http://semantic-mediawiki.org/wiki/Demo:Tagcloud/Basic_tagcloud_with_links