Automatically register repo tests.

This removes the need to manually register test classes
in Wikibase.hooks.php.

Change-Id: Iec92ff5c68306c7082e7c8830cc761ad6a5d871e