add code to handle cancel / exit events in the oauth browser flow
Merge pull request #526 from nraboy/master

add code to handle cancel / exit events in the oauth browser flow