HTTP Basic authentication does not work with fastcgi

HTTP basic authentication fails to work when using the fastcgi configuration,
thus the API does not work. Solution suggested from
https://bugs.php.net/bug.php?id=35752

Testing Done:
Without the patch API calls fail. With the patch API calls succeed.

Reviewed at https://reviews.reviewboard.org/r/4934/
Support two-factor authentication for GitHub.

This adds support for two-factor authentication when linking an account
for a GitHub repository. Two-factor auth is much safer, and is something
to be encouraged, but was not previously usable with Review Board.

We only ever authenticate when linking an account for the first time, in
order to get an OAuth token. The repository form now has support for
HostingServices to raise a TwoFactorAuthCodeRequiredError, which
indicates the service needs an authorization code to continue.

The repository form responds to that by displaying a field where the
user can enter their auth code. The HostingService will be passed this
code and can include it in the authorization request.

There are no other points where a two-factor auth token is needed for
GitHub, since requests using OAuth tokens do not need two-factor auth
tokens.