Add a logout option to the CLI

closes #25