Added account listing and logging out

Added command to list accounts, as well as for a client to log out of an
account