support special sites in APISite.fromDBName()

that constructor could not initialize some sites correctly,
such as multilingual ones (Meta-Wiki, Commons, Wikidata)

also updated site_tests.py accordingly

Change-Id: I6e8f78bfe09bd985ff7b2b988d39d02e05898ee3
Merge "support special sites in APISite.fromDBName()"