Move code related to IPC protocol to one file: LineProtocol.pm
Some unit tests for LineProtocol
small fix in test - use tmp file with desired name