std::io: Add .lines() method to Buffer

The `.lines()` method creates an iterator which yields line with trailing '\n'.
(So it is slightly different to `StrSlice.lines()`; I don't know if it's worth to synchronize them.)