Add plugin hook 'logout'.

Allows to perform actions before beeing logged out.