Added support for custom URL handler and OAuth callback using that..