TCP server which support only single cleint at a time
LineServer refactoring.

- factory moved to separate class
- more logs
- shorter run method