lib: add IStream::read_lines

Lines are not chomped since I prefer to not lose information.