Add a reverse flag to runCallback.

Determines if the Lines member is iterated over in reverse
(confusingly, if reverse is true, the lines are iterated over in
script-forward order).