finally fixed issue #85 without using threading (turn out that simply delaying file write is sufficient).

Now HistoryManager.cs stores chat lines in buffer before writing them (all at once) to a file.