Move findCodeForward/Back into object.

That way static methods can use it as well. I left helper methods in class
Indenter because it's nice to omit the buffer arg and have defaults for
start/end (which is not possible with the static versions, sigh).