Add support for accounts using two factor authentication (fixes #118)

Spots when the login action returns a 302 indicating there is the second login step of two factor authentication involved and handles that in the same manner as before.

Second pull request so I can merge other stuff into my master branch without polluting the request.