Refactor protocol detection code out of `redirectToSignInWithAuthRequest` function and into new `detectProtocolLaunch` function, with callbacks for handler.
Refactor protocol detection code out of `redirectToSignInWithAuthRequest` function and into new `detectProtocolLaunch` function, with callbacks for handler.

blockstack/blockstack-cli,blockstack/opendig,blockstack/blockstack-cli