Move templates from lib to repo

I'd like to try to refactor the hook setup and TemplateRegistry afterwards
in a separate patch. This change creates a situation where lib depends on stuff
in repo. I do it like that because lib/resources/jquery.wikibase/ is subject to
a lot of pending changes, while these files are probably not touched currently.

Change-Id: Ic79abfbc6aa67320070061008b3a5d81d6bc5f41
Merge "Move templates from lib to repo"