Require only the cookie, other cleanup.

This now only requires the cookie, placed in a file called `cookie.txt`.

Additionally, I've

* Switched the response handling with requests to use `raise_for_status`
* Turned on logging