Improving pagination

(PR created from @pklaus's commit.)

* Adding retries (the Github Gist API failed sometimes)
* Using a different style of incrementing variables
* Removing note about having to implement pages support