Added Wayf login.
Exceptions are now thrown as error objects.