XD-477 Support pagination in list() command for streams

Embryo of proper pagination support