make a JBrowse/Util/TextIterator that iterates over text lines in a byte array, and refactor everything to use it, removing redundant getlines implementations