Added json support for configurations, single_img now gathers site links correctly. Added generator to obtain page numbers