Get TEXT(COUNT()) sample working.

Rewrite generators to immediately return first default value.
Arguments are passed to succeeding calls to iterator.next().
Add promisify routine to transform fns into promises on promise arguments.