Implement /logout command

This is not really intended to be inputted directly by users.