lib: add RFC 1459 line parser
server: add some logic from Tetra