Add redirects options

Move hard-coded maximum redirects number to options.