Fixed server-side concurrency issues, added delete feature in chat.