added list_chat_rooms() function and command. misc fixes.