I think you're right that "continuation local" variables are needed to make implementing pagination easy. I just prototyped something as follows:
I created a page-local scope associated with the current continuation of sendPageAndWait accessible as "cocoon.page".
Cool! I'll have a look at it.
Vadim
