control redirects

Set 'redirects' get-parameter to 'off' or 'false' to disable following redirects or to an integer to cap the number of redirects
Merge pull request #1 from shemigon/master

control redirects