Implement Firebase chat.