Fail the sync if we close the browser without passing proper credentials.
Add cookie handling for Shibboleth credentials.

Which cookies are going to be stored are determined only when setting
up or modifying an account. Cookie handling allow us to avoid choosing
Identity Provider everytime when browser page appears.
Set busy cursor when doing page loading in browser.