Support continuable style API invocation.
Fix typo and clean whitespace
Remove dependence on setImmediate.
Merge pull request #1 from creationix/master

Fixes to work with tedit.