XD-506 Support pagination in list() command for jobs.

* Updated code to support the pagination on the existing list command.
* Updated Tests accordingly.