Handle relative redirects in HttpUrlFetcher.

Fixes #119
Fix NPE in gif sample.