Move some constants from libs/chat.php to libs/common/constants.php