Add log out test.

Signed-off-by: François de Metz <francois@stormz.me>
Extract logout to the authenticator.

Signed-off-by: François de Metz <francois@stormz.me>