Add option for max_pages=None.

In that case the generator will continue until pagination stops.
Merge branch 'johncadengo-max-pages-none'