Fix issue where none root composer.json could be used by ArtifactRepository http://www.php.net/manual/en/ziparchive.locatename.php#85512
Improved variable name.
replaceVersion() method added
Comment fix
Bail out of the normal 401 handling routine when the origin is GitHub
Test if the 401 was caused by 2FA and ask for OTP if appropriate
Add GitHub OTP to request headers
Trim whitepsace from each argument
Remove GitHub OTP code from RFS class
Add an option which causes reauth attempts to be bypassed
Intercept auth rejections requiring an OTP token
Do not ask for credentials again if OTP token is present
Add OTP token to the request headers
Bypass RFS auth failure handling
Add message when SMS authentication code is required
Change docs to reflect support for GitHub 2FA
Correct capitalisation of OAuth
Correct use of English
Treat HTTP header as case insensitive
Fix for #2613, when using  php < 5.4 there was an unnecessary backslash before each utf-8 char.  The problem was that the regexp matched all utf-8 encoded chars (included the ones that where escaped). The new regexp uses the lookbehind feature to check if the backslash isn't prefixed with an other backslash.