[packagedb-cli] Change the way auth is done slightly so that we can use the session cookie