update oauthflow events handling
handle multiple onpagestarted
cleanup and rename a method
set api call finished state earlier
add a customized dialog for ssl issue
Merge pull request #56 from box/s

update oauthflow events handling