Adding SiteMatrix stuff

I'm pretty sure this is a requirement for Wikibase Client, but I've also left some stuff out.