Added options to use window instead of iframe with wayf login.