Add support for Apache 2.4
Improve redirect handling

Ignore redirects to ftp sites.

Only allow a maximum of 5 redirects for a single download.