LogService updated.

- TextWriterService was refactored into MapAdapter.
- Events in forms added for use of LogService when forms are closing.
- Header added to logs.
- Mocked LogService added.
- LogService Unit tests.