High performance line counting for Zed.

According to my hours of extensive testing, with evidence here:

http://jsperf.com/uncached-splitting

This is *the* fastest way to count the number of lines in a string, without wasting memory by duplicating the lines with the split.
Merge pull request #263 from robru/patch-8

High performance line counting for Zed.