Use the right capacity when shifting rbuf.
Remove duplicated code.

    Readto and skipto were more or less identical in structure,
    with the one difference that one filled a buffer and the other
    did not.

    This unifies them.
Merge https://github.com/oridb/libbio