Fix serialization of LogMessage and add tests for it.

* LogMessage serializer was incorrectly configured.
* terminal now prints all log messages, without colors.