[WIP] LineReader class for reading lines from file stream

Don't merge. This is tested, but not yet benchmarked.