Add methods for cearth to obtain auth cookies and tokens

Still doesn't work in this commit.
Need to find out CURLINFO_COOKIELIST works so that cookies can be read
directly.
Logindb works in this commit, but user deletion and cookie management is
still missing.