Refactored cli/cookiejar. Fixed a bug in cli.

The bug caused the login logic to be short-circuited if a cookiejar file
existed. Now, a hash of the server, email, and password is used to
verify that the cookie information contained in the on-disk cookiejar
is related to the provided server, email, and password.
Refactored cookiejar again.