Batch processing for large queues

Performance was severally impacted by a large chat backlog. Now if there
are more than 25 messages in the backlog queue for a Chat.get request,
the messages will be processed in batch and updated to the chatbody div
once.