Created an AuthException object.
Added use statements for UcamWebauth and AuthException
Added some docblock
Changed the way the logged_in variable is set.
Rejigged the login method a bit, trying to get it to work properly.