Make OAuth friendlier to Cordova

Expose the credentialSecret and credentialToken to parent containers if there is no window.opener.