Use curl instead of wget (no need to have two dependencies when one is enough)
Consolidate user-agent setting in mediawiki lib
Fix tests