Add logout() method and spec.