server: add support for user logout

Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>