rf_textfile_read_lines now also returns line positions
RFbuffer changes

- Cleaned up the API of RFbuffer a bit
- Changed all parts of the code it's used
- Could use a bit more thinking, especially for bounds checking