Handle HTTP timeouts better

We currently don't set a timeout on our HTTP calls to the MediaWiki API.