From http://stackoverflow.com/questions/1952219/iphone-nsurl-get-last-redirected-url