Rename '__test__' to '__test__.py' to easily install it.
tests: fix running tests on installed copy of Portage.

This involved adding installation paths to configuration files
conditionally and letting repoman fetch metadata.dtd.
travis: test installing & running tests against installed copy.