design tweaks
hope this fixes the chat issues once and for all
- reset the collection instead of adding the queued messages
makes sure that the collection is cleared first
Working on chat
- add limits to backend and frontend chat storage
- in the backend, if the user adds more msgs than is allowed we
truncate the chatlog to create more space
- in the frontend if the ui has more than a certain amount (100)
msgs, we truncate it as well (to 50)
- put idx numbers in the chat msgs so the frontend can
sync easily with the backend