Set autoload to false on CURLFile in HTTPSFuture

Summary: Fixes T6264, I assume this is correct after grepping through the codebase.

Test Plan: Reload in sandbox, eyeball text, not sure what else to do.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T6264

Differential Revision: https://secure.phabricator.com/D10650
Support arbitrary start numbers for ordered lists in remarkup

Summary: Fixes T6377.

Test Plan: Unit tests, mostly. Also checked a local install to see if this felt sensible.

Reviewers: Thirtyate, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T6377

Differential Revision: https://secure.phabricator.com/D10742
Remove history support for console prompts on Windows

Summary: Fixes T6348.

Test Plan: Run `arc diff --nolint --nounit` and see the expected prompt, instead of just one word.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T6348

Differential Revision: https://secure.phabricator.com/D10743
Assume utf8mb4 support

Summary:
Ref T1191. This stops throwing an exception for non-BMP data when constructing queries.

  - For installs which have already adjusted, this allows emoji and other 4-byte characters to work.
  - For installs which have not adjusted yet but do have STRICT_ALL_TABLES set, MySQL will raise an error intead ("Incorrect string value...").
  - For installs which have not adjusted and also do not use STRICT_ALL_TABLES, this will silently truncate data. This is potentially a security risk. However, these installs are warned about the risk of leaving STRICT_ALL_TABLES disabled, there's no known way to exploit this issue, and they'll be auto-adjusted soon.

Test Plan: Ran locally and on secure.phabricator.com with this patch for a long time.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T1191

Differential Revision: https://secure.phabricator.com/D10798
MediaWiki oauth1 adaptor for phabricator

Summary: This is now a more robust implementation borrowing a bit from the JIRA oauth adaptor, this now configurable to work with any mediawiki install.

Test Plan: added and configured the mediawiki provider to work with my local test wiki. Associated my account with a wiki account. Logged in via mediawiki oauth. bingo!

Reviewers: #blessed_reviewers, epriestley, csteipp

Subscribers: aklapper, WikiChad, csteipp, greggrossmeier, epriestley, Korvin

Projects: #wikimedia

Maniphest Tasks: T5096

Differential Revision: https://secure.phabricator.com/D9202
Added a hook to handle error messages in responses with non-error http status codes

Rebased on a much more modern upstream (current trunk)
  - PhutilAuthAdapterOAuthMediaWiki becomes PhutilMediaWikiAuthAdapter
    due to new naming conventions that went into effect since this patch was created.

Improved url handling:
 - normalize slashes in the wiki URLs
 - normalize iss uri in decodeAndVerifyJWT. This is to strip off the path portion of the
   wiki base url that is now likely to be present due to the following:
 - don't assume /w/  or /wiki/  - just append /index.php?title=$whatever to the base url
 - so now the user should include the /w part in the url field when configuring the provider.
 - this still doesn't handle mobile browsers, unfortunately, they will break because of some
   stupidity related to handling of pretty-urls in mediawiki.

Change-Id: Icbc2e5574d82fb8b2bea553269cdf80cabd75e7c