Use error codes to determine if next mirror is required
Moved from urllib2 to requests module in order to deal with head requests properly
Merge pull request #7 from gausie/check_error_code_for_mirrors

Use error codes to determine if next mirror is required