Added some cross browser handling of wayf login.