Update the OAuthProcess() function with error-trapping, redirect-uri compillation, and oauth-version determination.