reorder login flow code, fix redirection issue (fixes #5)
clean up debug message
Merge pull request #6 from mozilla/5-reload-after-signin

reorder login flow code, fix redirection issue (fixes #5)