Add login and logout support.

Booyah!