tarfie link
Implement newlines in s replacement, fixing bug.
Test newlines in y command.
Use setImmediate to avoid running out of stack when looping.
Reinstate out-of-order 'end' processing.