Support for customising the useragent.
This is needed to nicely use the MediaWiki API.
Removed unused 'Request' class