Exposed DiffLinesToRunes and did other minor cleanup.

If clients clients use DiffLinesToRunes they can avoid an extra string to rune conversion.

Also fixed some comments and got rid of an unnecessary helper function.