Use mediawikisite instead of looking up site_api from the database.
reword comments
more usage of mediawikisite
more site_api stuff
undo app.config change