Plus a couple changes I couldn't be bothered to isolate.
It doesn't work for because the session gets invalidated for, and I quote, "some reason." Thanks, guile-gnutls. The code is also ugly and needs refactoring to be cleaner. We can separate a lot of things into their own functions for readability.