Initial version, seems to actually work
Add a bit more debugging, and we really don't care too much about the response
Add license header, clean trailing whitespace
Fixed up magic string debug output
Fixed up auth system to support new HTTPS authentication method
Changed keepalive time from 400s to 200s
Change to a non-threaded approach
Add support to get username and password interactively, and move logging initialization into a separate function
A bit of whitespace cleanup
Move code that checks whether we're logged in into a separate function
Handle the logged in at startup state better
Remove trailing newline from username
Update help
Remove more trailing whitespace
Reduce the period of re-tests from 60 to 5 seconds
Rewrite everything in the form of a state machine

--HG--
branch : state-machine-rewrite
Remove unnecessary try/except

--HG--
branch : state-machine-rewrite
Catch socket.errors as well

--HG--
branch : state-machine-rewrite
Remove trailing whitespace

--HG--
branch : state-machine-rewrite
Merge state-machine-rewrite back to default