Add index
Make ByteString-based line-based index
Use plain old ByteString
Finish off index API