Refactor out GetNextSelection; add command replace_next

#454 
Oh I see, I should have a lastSearched or whatever? That makes sense to me for the old text, but how would you pass in the new text to be changed?